#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :Fibonacci_19.py
# @Time      :2020/6/22 14:34
# @Author    :Administrator

items = int(input("请输入要需要几项:"))

n1 = 0
n2 = 1
numbers = 2

if items <= 0:
    print("请输入一个正整数!")
elif items == 1:
    print("斐波那契数列: %d" % n1)
else:
    print("斐波那契数列: %d,%d," % (n1, n2), end='')
    while numbers < items:
        n1, n2 = n2, n1 + n2
        numbers += 1
        print('%d,' % n2, end='')
